import request from '@/utils/request'

//获取施工票列表
export function getSchemePage(data) {
  return request({
    url: '/scheme/page',
    method: 'post',
    data
  })
}

//保存施工票
export function schemeSave(data) {
  return request({
    url: '/scheme/save',
    method: 'post',
    data
  })
}

//获取施工票详情
export function schemeDetails(data) {
  return request({
    url: '/scheme/details',
    method: 'post',
    data
  })
}

//审核施工票
export function schemeAudit(data) {
  return request({
    url: '/scheme/audit',
    method: 'post',
    data
  })
}

//提交作业票
export function jobTicketSave(data) {
  return request({
    url: '/jobTicket/save',
    method: 'post',
    data
  })
}

//审核施工票
export function getJobTicket(data) {
  return request({
    url: '/jobTicket/getByScheme',
    method: 'post',
    data
  })
}

//获取进度节点模板
export function getTemplate() {
  return request({
    url: '/scheme/scheduling/template',
    method: 'post'
  })
}

//获取危险点
export function getDangerPoints() {
  return request({
    url: '/scheme/dangerPoints',
    method: 'post'
  })
}

//导出施工方案
export function exportScheme(data) {
  return request({
    url: '/scheme/export',
    method: 'post',
    data,
    responseType: 'blob'
  })
}

